﻿@using GSLMS.Entity
@using GSLMS.Entity.Enum
@model GSLMS.Entity.TB_APP_PROINFO
@{
    Layout = null;
    var ddlFinalApprover = ViewData["FinalApprover"] as SelectList;
    var auditList = ViewData["AuditInfo"] as List<GSLMS.Entity.TB_APP_AUDIT>;
    var conSumModel = ViewData["ConSumModel"] as TB_ADU_CONSUM;
    var empName = ViewData["empName"] as String;
}
<div class="pageContent">
    <form method="post" id="formDDGApplyConSum" action="RiskAudit/AuditConSum/CreateConSum?OpID=@ViewData["OperateID"]" class="pageForm required-validate"
    onsubmit="return validateCallback(this, dialogAjaxDone)">
    <div class="pageFormContent"  layouth="60">
        @Html.HiddenFor(model => model.ID)
        <p>
            <label>
                申请编号：</label>
                <a href="/DianDang/Apply/ProInfo/Details/@Model.ID?OpID=@ViewData["OperateID"]" rel="GApplyConSumShowApplyDetails"   target="dialog" title="查看立项申请[@Model.CUSTNAME]">
                @Html.ValueFor(model => model.APPLYNO)
                </a>
           
        </p>
        <p>
            <label>
                客户姓名：</label>
            @Html.ValueFor(model => model.CUSTNAME)
        </p>
        <p>
            <label>
                证件号码：</label>
            @Html.ValueFor(model => model.CUSTNO)
        </p>
        <p>
            <label>
                贷款类型：</label>
            @((ApplyEnum.ProLoanType)Model.LOANTYPE)
        </p>
        <p>
            <label>
                业务经理：</label>
            @Html.ValueFor(model => model.SALESMAN)
        </p>
        <p>
            <label>
                所属部门：</label>
            @Html.ValueFor(model => model.DEPNAME)
        </p>
        <p>
            <label>
                申请日期：</label>
            @(Model.APPDATE.Value.ToString("yyyy-MM-dd"))
        </p>
        <p>
            <label>
                业务类型：</label>
           @((ApplyEnum.RegBussType)Model.BUSSTYPE)
        </p>
        <p>
            <label>
                贷款产品：</label>
            @Html.ValueFor(model => model.PRODUCTNAME)
        </p>
        <p>
            <label>
                中介人：</label>
            @Html.ValueFor(model => model.MEDIATOR)
        </p>
         <p>
            <label>
                中介人账号：</label>
            @Html.ValueFor(model => model.MEDIATORACCOUNT)
        </p>
        <p>
            <label>
                存在特批：</label>
            @*@Html.CheckBoxFor(model => (model.ISSPECIAL==1))*@
        </p>
        <p>
            <label>
                跟进风控：</label>
          
        </p>
         <p>
            <label>
                借款金额：</label>
            @Html.ValueFor(model => model.AMOUNT)
            万元
        </p>
         <p>
            <label>
                期限：</label>
            @Html.ValueFor(model => model.LOANPHASE)
            @(Model.LOANPHAESTYPE == 0 ? "天" : "月")
        </p>
        <p>
            <label>
                综合费率：</label>
            @Html.ValueFor(model => model.GENERALRATE)
            %
        </p>
         <p>
            <label>
                利率：</label>
            @Html.ValueFor(model => model.RATE)
            %
        </p>
         <p>
            <label>
                管理费率：</label>
            @Html.ValueFor(model => model.MANAGEFEERATE)
            %
        </p>
        @if (Model.BUSSTYPE == 3)
        {
         <p>
            <label>
                还款方式：</label>
            @((ApplyEnum.ProRepayment)Model.ProForHouInfo.SPAREFIELD1)
        </p>
        }
        else
        { 
          <p>
            <label>
                还款方式：</label>
           @((ApplyEnum.ProRepayment)Model.ProUnForHouInfo.REPAYMENT)
        </p>
        }
        @if (Model.BUSSTYPE != 3)
        { 
         <p>
            <label>
                预收费用：</label>
            @Html.ValueFor(model => model.ProUnForHouInfo.ADVAMT)
            元
        </p>
        }
         <div class="divider" />
        <p>
           <b><a href="DianDang/FKAudit/RiskControl/@(Model.BUSSTYPE == 3 ? "CreateHouInfo" : "CreateUnHouInfo")/@(Model.ID)?riskstatus=1"   rel="GApplyConSumShowRiskControl" target="dialog" title="查看立项申请[@Model.CUSTNAME]风控调查报告">风控调查报告</a></b> 
        </p>
        @if (Model.BUSSTYPE != 3)
        { 
        <p>
         <b><a href="DianDang/Apply/ProInfo/ReportInfo/@Model.ID" rel="GApplyConSumShowReportInfo" target="dialog" title="查看立项申请[@Model.CUSTNAME]项目经理调查报告">项目经理调查报告</a></b> 
        </p>
        
         
        }
         <div class="divider" />
           <ul>
             @foreach (var item in auditList)
             {
             <li style="line-height:25px;">
                 @item.AUDITTIME.Value.ToString("yyyy年MM月dd日")
                 @if (item.AUDITTYPE == 4)
                 {
                 <span>审议成员</span>
                 }
                 else if (item.AUDITTYPE == 3)
                 {
                  <span>首席风控官</span>
                 }
                 
                【@item.AUDITBY】审批@((ApplyEnum.ProAuditResult)item.AUDITRESULT)，意见：@item.AUDITCONTENT
             </li>
             }
           </ul>

          
        <div class="divider" />
        <div class="title">
            <h4>
                确认方案</h4>
            <div class="divider" />
            <table class="list nowrap" width="95%">
                <thead>
                    <tr>
                        <th>
                            类型
                        </th>
                        <th>
                            批核金额(万元)
                        </th>
                        <th>
                            贷款利率(%)
                        </th>
                        <th>
                            管理费率(%)
                        </th>
                        <th>
                            期限
                        </th>
                        <th>
                            同意还款方式
                        </th>
                        <th>
                            预收费用(元)
                        </th>
                        <th>
                            备注
                        </th>
                    </tr>
                </thead>
                <tbody>
                  @if (conSumModel != null && conSumModel.AduConSchemeList != null && conSumModel.AduConSchemeList.Count > 0)
                  {
                      foreach (var conschemeMode in conSumModel.AduConSchemeList)
                      {
                    <tr>
                       <td>@conschemeMode.PROGCAT</td>
                       <td align="right">@conschemeMode.AMT</td>
                       <td align="right">@conschemeMode.RATE</td>
                       <td align="right">@conschemeMode.MANAGERATE</td>
                       <td align="center">@(conschemeMode.LOANTIME + (conschemeMode.LOANPHASE == 1 ? "月" : "天"))</td>
                       <td>@((ApplyEnum.ProRepayment)conschemeMode.LOANPHASETYPE)</td>
                       <td align="right">@conschemeMode.ADVAMT</td>
                       <td>@conschemeMode.AUDITREMARK</td>
                    </tr>
                      }
                  }
                </tbody>
            </table>
        </div>
        <div class="divider" />
        <p>
           <label>
                审批结论：</label>
              @(conSumModel.ADURESULT == 1 ? "同意" : (conSumModel.ADURESULT == 2 ? "拒绝" : "退回"))
         </p>     
        <p style="width: 95%;">
            <label>
                综合意见：</label>
            @conSumModel.SUMOPINION
           
        </p>
        <p style="width: 95%;">
            <label>
                备注：</label>
            @conSumModel.REMARK
           
        </p>
         <p>
           <label>
                汇总人：</label>
              @conSumModel.SUMBY
         </p>
         <p>
           <label>
                汇总时间：</label>
              @Convert.ToDateTime(conSumModel.SUMDATE).ToString("yyyy-MM-dd HH:mm:ss")
         </p>
         <p>
            <label>
                提交到：</label>
            @conSumModel.TOUSER
          
        </p>      
              
        
        <div class="buttonActive">
                    <div class="buttonContent">
                        <button type="button" onclick="toAddFile()">
                            附件</button></div>
         </div>
           @Html.Hidden("hidActiondo")
       
    </div>
    
    </form>
</div>

